/**
 * author: redd
 * create_time: 2018/1/2 15:53
 * description:
 */
 

function main() {
  var canvas = document.getElementById('webgl');
  var gl = getWebGLContext(canvas);

  if(!gl) {
    console.log('Failed to get the rendering context for WebGL');
    return;
  }

  gl.clearColor(0, 0, 1, 1.0);
  gl.clear(gl.COLOR_BUFFER_BIT);
}